package com.basic.backend.service;

import cn.hutool.db.PageResult;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.basic.backend.model.dto.articles.ArticleQueryRequest;
import com.basic.backend.model.dto.articles.ArticleUpdateRequest;
import com.basic.backend.model.entity.Articles;
import com.baomidou.mybatisplus.extension.service.IService;
import com.basic.backend.model.vo.ArticleVO;

/**
* @author ASUS
* @description 针对表【articles】的数据库操作Service
* @createDate 2025-03-03 22:07:44
*/
public interface ArticlesService extends IService<Articles> {

    boolean saveArticle(Articles article);


    Boolean updateArticle(Long id, ArticleUpdateRequest request, Long currentUserId);


    Page<ArticleVO> getArticlePage(ArticleQueryRequest request);

    String getAuthorName(Long articleId);

    Integer getWordCount(Long articleId);
}
